<%@ page language="java" contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/view/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<title>Spring MVC 5 - form handling | Java Guides</title>
<%@include file="/WEB-INF/view/include/head.jsp" %>
</head>
<body>
	<div class="container">
		<div class="col-md-offset-2 col-md-7">
			<h2 class="text-center">Spring MVC 5 file upload</h2>
			<div class="panel panel-info">
				<div class="panel-heading">
					<div class="panel-title">Add Customer</div>
				</div>
				<div class="panel-body">
					<form:form action="${ctx}/a/file/uploadFile" cssClass="form-horizontal"
						method="post"  enctype="multipart/form-data">

						<div class="form-group">
							<label for="email" class="col-md-3 control-label">File</label>
							<div class="col-md-9">
								<input type="file" name="file" class="form-control"/>
							</div>
						</div>

						<div class="form-group">
							<!-- Button -->
							<div class="col-md-offset-3 col-md-9">
								<button cssClass="btn btn-primary" type="submit" value="Submit">Submit</button>
							</div>
						</div>

					</form:form>
				</div>
			</div>
		</div>
	</div>
</body>
</html>